package com.yuanlp.shoppingmall.shoppingcart.fragment;

import android.annotation.SuppressLint;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.yuanlp.shoppingmall.base.BaseFragement;

/**
 * Created by 原立鹏 on 2017/8/8.
 */

@SuppressLint("ValidFragment")
public class ShoppingFragment extends BaseFragement {
    private TextView textview;

    @SuppressLint("ValidFragment")
    public ShoppingFragment(Context context){

    }
    /**
     * 强制子类实现他，让在oncreateview里显示这个布局。
     *
     * @return
     */
    @Override
    public View initview() {
        textview=new TextView(context);
        textview.setGravity(Gravity.CENTER);
        textview.setTextSize(25);
        return textview;
    }

    @Override
    public void initData() {
        super.initData();
        textview.setText("商品页面");
    }
}
